package mathematics.areaConversion;

/**
 * 面积转换
 * @version 1.0
 * @since 2024/11/10
 */

public class AreaConvert {
    public static void main(String[] args) {
        AreaConvertInteger m2ConvertHa=area -> area/10000;

        Integer convert = m2ConvertHa.convert(3000000);
        System.out.println(convert+"公顷");


        AreaConvertDouble km2ConvertM2=area -> area*1000000;
        Double convert1 = km2ConvertM2.convert(16.3);
        System.out.println(convert1+"平方米");

    }
}
